package com.ironman.compute.generator;


import cn.hutool.core.util.RandomUtil;
import lombok.RequiredArgsConstructor;
import org.noear.snack.ONode;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class HeartrateComputeDataGenerator extends ComputeDataGenerator {


    @Override
    public String topicType() {
        return "heartrate";
    }

    @Override
    public ONode generate() {
        return ONode.newArray()
                .add(RandomUtil.randomInt(60, 180))
                .add(RandomUtil.randomInt(80, 200));
    }

}
